package com.pureut.production.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pureut.production.domain.RollPackingHistory;
import com.pureut.production.domain.dto.RollPackingHistoryDto;
import com.pureut.production.mapper.RollPackingHistoryMapper;
import com.pureut.production.service.RollPackingHistoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RollPackingHistoryServiceImpl extends ServiceImpl<RollPackingHistoryMapper, RollPackingHistory> implements RollPackingHistoryService {

    /**
     * 小卷历史信息mapper
     */
    @Resource
    private RollPackingHistoryMapper rollPackingHistoryMapper;

    /**
     * 根据小卷号码查询小卷历史信息
     * @param smallVolumeNumber
     * @return
     */
    @Override
    public RollPackingHistoryDto selectRollPackingHistoryInfo(String smallVolumeNumber) {
        return  rollPackingHistoryMapper.selectRollPackingHistoryInfo(smallVolumeNumber);
    }

    /**
     * 根据母卷号码查询小卷历史信息
     * @param masterVolumeNumber
     * @return
     */
    @Override
    public List<RollPackingHistoryDto> selectRollPackingHistoryMasterVolumeNumber(String masterVolumeNumber) {
        return rollPackingHistoryMapper.selectRollPackingHistoryMasterVolumeNumber(masterVolumeNumber);
    }


}
